package com.hc.bean;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

@Data
@Entity

/*
    问题:
    If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
	If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
	解决方法:
    https://blog.csdn.net/lwd18175239125/article/details/115066431
*/
@Table(name = "user")
public class User implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    private String name;

    private Integer age;

}